package net.courier.remoting.server;

import net.courier.remoting.ServiceRegistry;

public abstract class ServiceServer {
	private static final int DEFUALT_PORT = 5566;
	
	protected final int port;
	protected ServiceRegistry registry;
	
	public ServiceServer() {
		this(DEFUALT_PORT);
	}
	
	public ServiceServer(int port) {
		this.port = port;
	}
	
	public void setRegistry(ServiceRegistry registry) {
		this.registry = registry;
	}
	
	public abstract void start() throws Exception;
	
}
